import time

# import debugpy
# 5678 is the default attach port in the VS Code debug configurations. Unless a host and port are specified, host defaults to 127.0.0.1
# debugpy.listen(5678)
# print("Waiting for debugger attach")
# debugpy.wait_for_client()
# debugpy.breakpoint()
# print('break on this line')

def calcE():
    e=1
    bn=1
    since = time.time()
    for i in range(10000):
        bn=bn*(i+1)
        e=e+1/bn
    d = time.time()-since
    print(e)
    print("Time:"+str(d)+"s")
    return e